package com.xxgc.cloud.error.center;

import com.xxgc.cloud.error.center.aop.AddExceptionPath;
import com.xxgc.cloud.error.center.error.QuartzException;
import com.xxgc.cloud.error.center.error.ShiroException;
import com.xxgc.cloud.error.center.error.SpringMvcException;
import com.xxgc.cloud.error.center.result.SwaggerErrController;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @program: SpringCloudStudy
 * @description: 开启错误中心
 * @author: Mr.abel(ShiJiaYi)
 * @create: 2022-11-23 15:12
 **/
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import({
        SwaggerErrController.class,//开启Swagger扫描
        AddExceptionPath.class, //AOP扫描
        QuartzException.class, // 以下是各个框架的全局异常拦截
        SpringMvcException.class,//参数校验异常
        ShiroException.class,//Shiro异常
        BaseException.class
})
public @interface EnableErrorCenter {

}
